<?php
require_once 'index.php'; // $conn

$username = $_POST["username"];
$sex = $_POST["sex"];
$message = $_POST["message"];
$imgurl = $_POST["imgurl"];
$time_at = time();

$sql ="INSERT INTO  `bbs`.`db_emp` (
`e_id` ,
`e_name` ,
`e_dept` ,
`e_img` ,
`date_of_birth` ,
`date_of_entry`
)
VALUES (
NULL ,  '$id',  '$name',  '$dept',  '$imgurl',  '$birth',  '$entry'
);
";

$result = $dd->query($sql);
if($result===false){
    echo "0" ;
}
header("location:index_list.php");
